package com.web.oa.service;

import com.web.oa.pojo.Employee;
import com.web.oa.pojo.EmployeeCustom;

import java.util.List;

public interface EmployeeService {

    Employee login(String username, String password);

    Employee findSysUserByUserCode(String username);

    Employee findEmployeeByManager(Long managerId);
    //添加用户
    int saveUser(Employee employee);
    //查询用户和角色列表
    List<EmployeeCustom> findUserAndRoleList();

    void updateEmployeeRole(String roleId, String userId);

    List<Employee> findEmployeeByLevel(int level);
}
